<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>商品详情</title>
		<link rel="stylesheet" type="text/css" href="css/public.css"/>
		<link rel="stylesheet" type="text/css" href="css/decails.css"/>
	</head>
	<body>
		<!--nav-->
		<nav>
			<div class="nav_left">
				<div class="n_shop" id="n_shop">
					<div class="icon0"></div>
					<p>购物车</p>
					<div class="n_y" id="num1">0</div>
				</div>		
					<div class="icon1" id="icon1"> 
						<img src="img/9.png"/>
					</div>
					<div class="icon2" id="icon2">
						<img src="img/10.png"/>
					</div>
					<img src="img/6.png" class="icon3"/>
					<img src="img/5.png" class="icon4"/>
					<img src="img/下载.png" class="icon5" id="icon5"/>
		   		
		   	</div>	
		   	<div class="nav_right">
		   		<div class="myShoopingCart" id="myShoopingCart">
		   			<p>我的购物车</p>
		   			<img src="img/login-close.png" class="error"/>
		   			<img src="img/cart_mini_empty.png" class="car"/>
		   		</div>
		   		<div class="myCoupon" id="myCoupon">
		   			<p class="you">我的优惠劵</p>
		   			<img src="img/login-close.png" class="error"/>
		   			<p class="deng">登录后才能查看</p>
		   			<a href="login.html" class="btn1">登录</a>
		   		</div>
		   		<div class="myFavorite" id="myFavorite">
		   			<p class="you">我的收藏</p>
		   			<img src="img/login-close.png" class="error"/>
		   			<p class="deng">登录后才能查看</p>
		   			<a href="login.html" class="btn1">登录</a>
		   		</div>
		   	</div>
			
				
		</nav>
		<!--header-->
		<header>
			<a href="Consumer notification.html" class="h_xiao">消费者告知书</a>
			<div class="h_r">
				<a href="login.html" id="login_text">登录</a><span>|</span>
				<a href="login.html">注册</a><span>|</span>
				<div><img src="img/1.png"/>400-080-1888</div><span>|</span>
				<div>下载达鹿app</div>
			</div>
		</header>
		<!--aside-->	
		<aside>
			<img class="logo" src="img/logo.jpg"/>
			<p class="a_i">一手全球好货</p>
			<div class="a_search">
				<form>
					<input type="text" class="a_s"/>
					<input type="button" value="搜索" class="a_e"/>
				</form>
				<p class="a_d">
					<a href="#">口红</a>
					<a href="#">面膜</a>
					<a href="#">耳饰</a>
					<a href="#">日系美妆</a>
					<a href="#">化妆水</a>
					<a href="#">底妆</a>
					<a href="#">乳霜</a>
					<a href="#">洁面</a>
					<a href="#">防晒</a>
				</p>		
			</div>
			<a class="a_shop" id="a_shop">
				<img src="img/da-header-cart-bg.jpg"/>
				我的购物车<span class="a_shop_k">></span>
				<span class="a_y" id="num2">0</span>
			</a>
		</aside>
		<!--bar-->
		<div class="bar">

			<a href="#" id="allGoods">全部分类 <span></span> </a>
			<a href="#">首页</a>
			<a href="#">极致美护</a>
			<a href="#" id="sock">全球零食</a>
			<a href="#">创意生活</a>
			<a href="#">时尚配饰</a>
			<a href="#">尖货女装</a>
			<a href="#">3C家电</a>
		</div>
		<!--banner-->
		<div class="banner">
			<div class="banner_left" id="banner_left">
				<dl class="dl1">
					<dt>
						<p><img src="img/14387617626466.png"/> 极致美护</p>
						<a href="#">面膜</a>
						<a href="#">化妆水</a>
						<a href="#">洁面</a>
						<a href="#">防晒</a><br />
						<a href="#">面霜/乳液</a>
						<a href="#">卸妆</a>
						<a href="#">精华</a>
						<span class="dl_icon"></span>
					</dt>
					<dd>
						<p>极致美护</p>
						<div class="dl1_photo">
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
						</div>
						<div class="dl1_left">
							<div class="left_1">
								<a href="#">面部护肤</a>
								<a href="#">面膜</a>
								<a href="#">化妆水</a>
								<a href="#">洁面</a>
								<a href="#">防晒</a>
								<a href="#">面霜/乳液</a>
								<a href="#">精华</a>
								<a href="#">眼部护理</a>
								<a href="#">护肤套装</a>
								<a href="#">唇部护理</a>
								<a href="#">精油</a>
								<a href="#">美妆用品</a>
								<a href="#">男士专区</a>
							</div>
							<div class="left_2">
								<a href="#">彩妆香氛</a>
								<a href="#">卸妆</a>
								<a href="#">女士香水</a>
								<a href="#">隔离/底妆</a>
								<a href="#">唇膏口红</a>
								<a href="#">眼妆/腮红</a>
								<a href="#">美甲</a>
							</div>
							<div class="left_3">
								<a href="#">个护保健</a>
								<a href="#">沐浴/体乳</a>
								<a href="#">洗发/护发</a>
								<a href="#">口腔护理</a>
								<a href="#">美体护理</a>
								<a href="#">手足护理</a>
								<a href="#">驱蚊凝露</a>
								<a href="#">女性卫生</a>
								<a href="#">保健品</a>
							</div>
						</div>	
						<div class="dl1_right">
							<img src="img/8.png"/>
						</div>
						
					</dd>
				</dl>
				<dl class="dl2">
					<dt>
						<p><img src="img/1438769925573.png"/> 全球零食</p>
						<a href="#">饼干</a>
						<a href="#">威化</a>
						<a href="#">蜂蜜</a>
						<a href="#">麦片</a>
						<a href="#">糖果</a>
						<a href="#">巧克力</a>
						<a href="#">膨化食品</a>
						<a href="#">咖啡</a>
						<span class="dl_icon"></span>
					</dt>
					<dd>
						<p>全球零食</p>
						<div class="dl1_photo">
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
						</div>
						<div class="dl1_left">
							<div class="left_1">
								<a href="#">面部护肤</a>
								<a href="#">面膜</a>
								<a href="#">化妆水</a>
								<a href="#">洁面</a>
								<a href="#">防晒</a>
								<a href="#">面霜/乳液</a>
								<a href="#">精华</a>
								<a href="#">眼部护理</a>
								<a href="#">护肤套装</a>
								<a href="#">唇部护理</a>
								<a href="#">精油</a>
								<a href="#">美妆用品</a>
								<a href="#">男士专区</a>
							</div>
							<div class="left_2">
								<a href="#">彩妆香氛</a>
								<a href="#">卸妆</a>
								<a href="#">女士香水</a>
								<a href="#">隔离/底妆</a>
								<a href="#">唇膏口红</a>
								<a href="#">眼妆/腮红</a>
								<a href="#">美甲</a>
							</div>
							<div class="left_3">
								<a href="#">个护保健</a>
								<a href="#">沐浴/体乳</a>
								<a href="#">洗发/护发</a>
								<a href="#">口腔护理</a>
								<a href="#">美体护理</a>
								<a href="#">手足护理</a>
								<a href="#">驱蚊凝露</a>
								<a href="#">女性卫生</a>
								<a href="#">保健品</a>
							</div>
						</div>	
						<div class="dl1_right">
							<img src="img/8.png"/>
						</div>
						
					</dd>
				</dl>
				<dl class="dl3">
					<dt>
						<p><img src="img/14387700022379.png"/> 创意生活</p>
						<a href="#">水杯/保温杯</a>
						<a href="#">随身小物件</a>
						<a href="#">玩偶</a>
						<a href="#">钥匙挂件</a>
						<a href="#">其他创意礼品</a>
						<span class="dl_icon"></span>
					</dt>
					<dd>
						<p>创意生活</p>
						<div class="dl1_photo">
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
						</div>
						<div class="dl1_left">
							<div class="left_1">
								<a href="#">面部护肤</a>
								<a href="#">面膜</a>
								<a href="#">化妆水</a>
								<a href="#">洁面</a>
								<a href="#">防晒</a>
								<a href="#">面霜/乳液</a>
								<a href="#">精华</a>
								<a href="#">眼部护理</a>
								<a href="#">护肤套装</a>
								<a href="#">唇部护理</a>
								<a href="#">精油</a>
								<a href="#">美妆用品</a>
								<a href="#">男士专区</a>
							</div>
							<div class="left_2">
								<a href="#">彩妆香氛</a>
								<a href="#">卸妆</a>
								<a href="#">女士香水</a>
								<a href="#">隔离/底妆</a>
								<a href="#">唇膏口红</a>
								<a href="#">眼妆/腮红</a>
								<a href="#">美甲</a>
							</div>
							<div class="left_3">
								<a href="#">个护保健</a>
								<a href="#">沐浴/体乳</a>
								<a href="#">洗发/护发</a>
								<a href="#">口腔护理</a>
								<a href="#">美体护理</a>
								<a href="#">手足护理</a>
								<a href="#">驱蚊凝露</a>
								<a href="#">女性卫生</a>
								<a href="#">保健品</a>
							</div>
						</div>	
						<div class="dl1_right">
							<img src="img/8.png"/>
						</div>
						
					</dd>
				</dl>
				<dl class="dl4">
					<dt>
						<p><img src="img/14387700336975.png"/> 时尚配饰</p>
						<a href="#">奢饰品</a>
						<a href="#">配饰</a>
						<a href="#">箱包</a>
						<a href="#">项链</a>
						<a href="#">手链</a>
						<a href="#">耳饰</a>
						<a href="#">戒指</a>
						<a href="#">太阳镜</a>
						<span class="dl_icon"></span>
					</dt>
					<dd>
						<p>时尚配饰</p>
						<div class="dl1_photo">
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
							<div><img src="img/7.png" alt="" /></div>
						</div>
						<div class="dl1_left">
							<div class="left_1">
								<a href="#">面部护肤</a>
								<a href="#">面膜</a>
								<a href="#">化妆水</a>
								<a href="#">洁面</a>
								<a href="#">防晒</a>
								<a href="#">面霜/乳液</a>
								<a href="#">精华</a>
								<a href="#">眼部护理</a>
								<a href="#">护肤套装</a>
								<a href="#">唇部护理</a>
								<a href="#">精油</a>
								<a href="#">美妆用品</a>
								<a href="#">男士专区</a>
							</div>
							<div class="left_2">
								<a href="#">彩妆香氛</a>
								<a href="#">卸妆</a>
								<a href="#">女士香水</a>
								<a href="#">隔离/底妆</a>
								<a href="#">唇膏口红</a>
								<a href="#">眼妆/腮红</a>
								<a href="#">美甲</a>
							</div>
							<div class="left_3">
								<a href="#">个护保健</a>
								<a href="#">沐浴/体乳</a>
								<a href="#">洗发/护发</a>
								<a href="#">口腔护理</a>
								<a href="#">美体护理</a>
								<a href="#">手足护理</a>
								<a href="#">驱蚊凝露</a>
								<a href="#">女性卫生</a>
								<a href="#">保健品</a>
							</div>
						</div>	
						<div class="dl1_right">
							<img src="img/8.png"/>
						</div>
						
					</dd>
				</dl>
			</div>
		</div>
		<!--section-->
		<section>
			<span class="section_icno1"></span>
			<span class="section_jiant"></span>
			<a href="#">极致美护</a>
			<span class="section_jiant"></span>
			<a href="#">彩妆香氛</a>
			<span class="section_jiant"></span>
			<a href="#" id="goodsType">隔离/底妆</a>
			<span class="section_jiant"></span>
			<span class="goodsDesc">[日本Shiseido] neuve惹我吸油蜜粉饼(3.5g)</span>
		</section>
		
		<!--商品-->
		<div class="goods">
			<div class="goods_left">
				<div class="goodsPhoto" id="goods_photo"><img src="img/38.jpg" id="goodsImg"/></div>
				<span class="share"></span>
				<span>分享</span>
				<span class="collect"></span>
				<span>收藏</span>
				<span class="expense"></span>
				<span id="last_icon">消费者告知书</span>
				<span class="last_icon" ></span>
				<div class="expenseText" id="expenseText">
					<span class="expense"></span>
					<span >消费者告知书</span>
					<span class="last_icon"></span>
					<p>尊敬的客户：</p>
					<p>您好！</p>
					<p>在您选购境外商品前，麻烦您仔细阅读此文，同意本文所告知内容后再进行下单购买：</p>
					<p>1.您在本（公司）网站上购买的境外商品为产地直销商品，仅限个人自用不得进行再销售，商品本身可能无中文标签，您可以查看网站的翻译或者在线联系我们的客服。</p>
					<p>2.您购买的境外商品适用的品质、健康、标识等项目使用标准符合原产国使用标准，但是可能与我国标准有所不同，所以在使用过程中由此可能产生的危害或损失以及其他风险，将由您个人承担。</p>
					<p>3.您在本（公司）网站上购买保税区发货的境外商品时，自动视为由达鹿极速免税店代您向海关进行申报和代缴税款。</p><br />
					<p>谢谢！</p>
					
					<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;北京普缇客科技有限公司</p>
				</div>
			</div>
			<div class="goods_right">
				<h2 class="goodsDesc">[日本 · 油田妹子心机粉] Shiseido资生堂 neuve惹我吸油蜜粉饼(3.5g)</h2>
				<span>达鹿价</span>
				<h1 id="goodsPrice"><span>￥</span>66.00</h1>
				<span class="goods_hai">海外限时售价 ￥99.00</span>
				<span class="goods_sell">6.7折</span>
				<span class="goods_mark">?</span>
				<span class="goods_espenses">税费：￥0.00</span>
				<span>促销信息</span>
				<span class="goods_inv">无敌价</span>
				<span>此商品参与无敌价活动</span>
				&nbsp;
				<span>详情</span>
				<span class="goods_jiantou"></span>
				<ul>
					<li>评分：
					<span class="icon_star"></span>
					<span class="icon_star"></span>
					<span class="icon_star"></span>
					<span class="icon_star"></span>
					<span class="icon_laststar"></span>
					</li>
					<li>评论：18987条</li>
					<li>收藏：35566</li>
				</ul>
				<span>购买数量</span>
				<div class="goods_number">
					<input type="text" value="1" class="goods_text" id="goods_text" />
					<span class="goods_border"><span class="jiant_top"></span></span>
					<span class="goods_border"><span class="jiant_bottom"></span></span>
				</div>
				<span class="goods_wu" id="goodsCount"></span>
				<!--<input type="button" class="goods_buy" value="立即购买" />-->
				<a href="javascript:;" class="goods_buy" id="goods_buy">立即购买</a>
				<input type="button" class="goods_add" id="goods_add" value="添加到购物车" />
				<span class="goods_quality"><span></span>正品保障</span>
				<span class="goods_hour"><span></span>24小时发货</span>
				<span class="goods_full"><span></span>满55元快递包邮</span>
			</div>
		</div>
		<!--商品详情-->
		<div class="details" id="details">
			<a href="#comm">商品信息</a>
			<a href="#discuss">用户评论（<span class="d_tiao">18989条</span>）</a>
			<a href="#topspeed">极速免税店介绍</a>
			<a href="#after">售后服务</a>
		</div>
		<!--商品信息-->
		<div class="information">
			<dl id="comm">
				<dt>商品参数</dt>
				<dd>
					<span>品 牌：[日本Shiseido]</span>
					<span>品 名：[日本资生堂]neuve惹我吸油蜜粉饼3.5g - 3.5g</span>
					<span>规 格：3.5g</span>
					<span>产品功效：保湿,美白</span>
					<span>保质期限：36</span>
					<span>生产日期：见商品外包装</span>
					<span>储藏方式：阴凉避光储存</span>
					<span>货 号：04A3BVA1TA221</span>
				</dd>
			</dl>
			<dl class="product">
				<dt>产品展示</dt>
				<dd>
					<span>女人我特大Kevin老师 给力推荐 开架式明星产品^^粉很细，很清透很薄。上妆后妆感非常自然。外形也精致小巧！超合适携带出门补妆，控油方面和一般粉饼差不多。透气方面也没问题，让外出时肌肤受到呵护不受紫外线伤害。性价比超超超高的一款粉饼，和几百元价位的大牌PK也妥妥不会输。因为它还能预防面疱生成，有效收敛毛孔、紧致肌肤，细致的粉末帮助mm快速恢复原有的娇嫩肌肤。</span>
				</dd>
				<dd>
					<img src="img/14290689244531.jpg" class="p1"/>
					<img src="img/14290689309712.jpg" class="p1"/>
					<img src="img/14290689374217.jpg" class="p1"/>
				</dd>
			</dl>
			<dl class="especially">
				<dt>特别之处</dt>
				<dd>
					<span>“吸油蜜粉”是不上妆也能使用的防晒透明蜜粉，清爽透薄的舒爽感，不阻塞毛孔，让脸庞一整天都滑嫩细致。 皮肤白皙的mm可以当作粉饼全脸使用，皮肤稍黑的mm建议做为高光，在T区使用，控油+打亮T区一举两得。使用时建议用轻轻按压的方式，不要用力擦拭。 粉盒内附上一个大镜子，让活泼好动的阳光美少女随时随地都能检测到自己油腻的小脸蛋，并且也为敏感的mm提供特制杀菌粉扑，粉扑不易生长杂菌，使用起来干净又清爽，在易泛油的部位按压，就能有效防止出油、黏腻，实在是美眉们迎夏不可或缺的化妆保养行头。
					</span>
				</dd>
				<dd>
					<img src="img/14539098913429.jpg"/>
					<img src="img/14290689951274.jpg"/>
					<img src="img/14290689738347.jpg"/>
					<img src="img/14290689848685.jpg"/>
				</dd>
			</dl>
			<dl class="discuss" id="discuss">
				<dt>用户评论</dt>
				<dd>
					<ul class="goodDiscuss">
						<li><span class="items">好评率：</span><h1>97%</h1><span class="items">评分：</span>
							<span class="icon_star"></span>
							<span class="icon_star"></span>
							<span class="icon_star"></span>
							<span class="icon_star"></span>
							<span class="icon_laststar"></span>
						</li>
						<li>
							<input type="radio"/>
							<span class="all_dis">全部评价：18989条</span>
						</li>
						<li>
							<input type="radio"/>
							<span>好评：189484条</span>
						</li>
						<li>
							<input type="radio"/>
							<span>中评：438条</span>
						</li>
						<li>
							<input type="radio"/>
							<span>差评：117条</span>
						</li>
					</ul>
					<ul class="evaluate">
						<li class="eva">
							<div class="eva_left">
								<img src="img/1423800379689.png"/>
								<p>达鹿_1410c04f225</p>
							</div>
							<div class="eva_right">
								<span>评论时间： 2017-09-26 22:02:11</span>
								<span class="grade">评分：
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
								</span>
								<p>挺小的一个</p>
							</div>
						</li>
						<li class="eva">
							<div class="eva_left">
								<img src="img/1423800379689.png"/>
								<p>达鹿_1410c04f225</p>
							</div>
							<div class="eva_right">
								<span>评论时间： 2017-09-26 22:02:11</span>
								<span class="grade">评分：
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
								</span>
								<p>挺小的一个</p>
							</div>
						</li>
						<li class="eva">
							<div class="eva_left">
								<img src="img/1423800379689.png"/>
								<p>达鹿_1410c04f225</p>
							</div>
							<div class="eva_right">
								<span>评论时间： 2017-09-26 22:02:11</span>
								<span class="grade">评分：
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
								</span>
								<p>挺小的一个</p>
							</div>
						</li>
						<li class="eva">
							<div class="eva_left">
								<img src="img/1423800379689.png"/>
								<p>达鹿_1410c04f225</p>
							</div>
							<div class="eva_right">
								<span>评论时间： 2017-09-26 22:02:11</span>
								<span class="grade">评分：
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
									<span class="icon_star"></span>
								</span>
								<p>挺小的一个</p>
							</div>
						</li>
					</ul>
				</dd>
			</dl>
			<dl class="topspeed" id="topspeed">
				<dt>极速免税店介绍</dt>
				<dd><img src="img/free_shop.jpg"/></dd>
			</dl>
			<dl id="after">
				<dt>售后服务</dt>
				<dd>客服电话： 400-080-1888，客服时间：周一至周日 09:00-18:00 <br />
					配送服务： 限大陆地区；申通或中通随机发货！订单满55元包邮；首单免运费！ <br />
					发货时间： 周一到周日全天发货，17点前付款当日发货 <br />
					相关服务： 该商品非质量问题不退不换 <br />
					微信服务： 微信号：ymallll，及时服务时间：周一至周日 09:00-18:00 <br />
				</dd>
			</dl>
		</div>
		<!--footer-->
		<footer>
			<div class="f_top">
				<ul>
					<li>
						为什么选择达鹿
						<span></span>
					</li>
					<li>
						<span></span>
						100多个品牌授权
					</li>
					<li>
						<span></span>
						24小时内发货
					</li>
				
					<li>
						<span></span>
						保税区正品
					</li>
				</ul>
			</div>
			<div class="f_center">
				<div class="c_left">
					<p class="c_text1">投资人说达鹿</p>
					<p class="c_text2">“hi，达鹿，我是投资人，投资比影响力更重要的是责任。”</p>
				</div>
				<div class="c_right">
					<p class="c_text1">投资人说达鹿</p>
					<p class="c_text2">“达鹿™一手全球好货--带您购全球,教您神马值得买。
                	连续两年荣获App store 编辑推荐最佳购物类应用！”</p>
				</div>
			</div>
			<div class="f_bottom">
				<div class="bottom_t">
					<a href="#">首页</a> | 
					<a href="#">网站地图</a> | 
					<a href="#">消费者告知书</a> | 
					<a href="#">优惠券使用规则</a> | 
					<a href="#">退换货使用说明</a> | 
					<a href="#">关于我们</a>  | 
					<a href="#">联系我们</a>
				</div>
				<div class="bottom_c">
					北京普缇客科技有限公司&nbsp;
					<img src="img/cert.png"/>
					<img src="img/cnnic.png"/>
					<img src="img/ico_zfb.jpg"/>
				</div>
				<div class="bottom_b">
					Copyright © 2016达鹿 ，All Rights Reserved │ 京ICP备14009583号-1 │ 京公网安备11010502027399 | 食品流通许可证编号：SP1101051510323113
				</div>
			</div>
		</footer>
	</body>
</html>
<script src="js/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/public.js" type="text/javascript" charset="utf-8"></script>
<script src="js/sea.js" type="text/javascript" charset="utf-8"></script>
<script src="js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="js/eventTools.js" type="text/javascript" charset="utf-8"></script>
<script src="js/bigMirror.js" type="text/javascript" charset="utf-8"></script>
<script src="js/cookieTools.js" type="text/javascript" charset="utf-8"></script>
<!--<script src="js/parabola.js" type="text/javascript" charset="utf-8"></script>-->
<script type="text/javascript">
//数据库返回值
var database;
var str;
//二级菜单
	document.getElementById("allGoods").onmouseover=function(){
		document.getElementById("banner_left").style.display="block";
	}
	document.getElementById("banner_left").onmouseover=function(){
		document.getElementById("banner_left").style.display="block";
	}
	document.getElementById("banner_left").onmouseout=function(){
		document.getElementById("banner_left").style.display="none";
	}
	document.getElementById("allGoods").onmouseout=function(){
		document.getElementById("banner_left").style.display="none";
	}
	$(function(){
		$("#last_icon").mouseover(function(){
			$(".expenseText").css("display","block");
		});
		$("#last_icon").mouseout(function(){
			$(".expenseText").css("display","none");
		});
		$("#expenseText").mouseover(function(){
			$(".expenseText").css("display","block");
		});
		$("#expenseText").mouseout(function(){
			$(".expenseText").css("display","none");
		});
//		放大镜

$("#goods_photo")[0].onmouseover = function(){
		singleton.getInstance({
					//容器的dom对象
					boxDom : $("#goods_photo")[0],
					//放大镜的尺寸（宽和高）
					width : 50,
					height : 50,
					//放大的倍数
					mult : 3,
					//透明度
					opacity : 0.3,
					//背景色
					bgColor : "pink",					
					//放大效果
					bigObj : {
						//位置
						pos:"右",
						pic:database.goodsImg
					}
		});
	}



		str=getCookie("userPhone");
        if(str==null){
            str="登录"
        }
        document.getElementById("login_text").innerHTML=str;
	//根据商品编号获取商品详情
	//接受数据
	var str1=location.href;//取地址参数部分
	var word1 = str1.substring(str1.indexOf("=")+1);
	$.ajax({
		type:"get",
		url:"php/getGoodsInfo.php",
		async:true,
		data:{
			goodsId:word1,
		},
		success:function(data){
			database=JSON.parse(data);
			$("#goodsType").html(database.goodsType);
			$("#goodsPrice").html(database.goodsPrice+".00");
			$("#goodsCount").html("库存"+database.goodsCount+"件");
			$("#goodsImg")[0].src=database.goodsImg;
			$(".goodsDesc").html(database.goodsDesc);
		}
		
	});

})
//	浮动

var maxScrollTop=$("#details")[0].offsetTop;
window.onscroll=function(){
	var scrollTop=document.documentElement.scrollTop||document.body.scrollTop;
	if(scrollTop>=maxScrollTop){
		$("#details").css({
			"position":"fixed",
			"top":"0px",
			"marginTop":"0px"
		});
	}
	if(scrollTop<=maxScrollTop){
		$("#details").css("position","static");
	}
}
//点击上下箭头数量进行变化
	$(".jiant_top").click(function () {
        $("#goods_text").val(parseInt($("#goods_text").val())+1)
    })
$(".jiant_bottom").click(function () {
    $("#goods_text").val(parseInt($("#goods_text").val())-1);
    if($("#goods_text").val()<=0){
        $("#goods_text").val(0)
	}

})
	$("#goods_buy").click(function () {
        // location.href="productList.html";
        // var parma={
		 //    goodImg:$("#goodsImg")[0].src,
			// trade:$(".goodsDesc").html(),
			// price:$("#goodsPrice").html().substring(14),
			// num:$("#goods_text").val()
        // }
        location.href="shopping cart.html?goodImg="+$("#goodsImg")[0].src+"&trade="+$(".goodsDesc").html()+"&price="+$("#goodsPrice").html().substring(14)+"&num="+$("#goods_text").val()+"";
    })
</script>







